package com.bookshop.service;

import com.bookshop.entity.*;
import org.quartz.SchedulerException;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * (Order)表服务接口
 *
 * @author makejava
 * @since 2024-01-17 09:41:39
 */
public interface OrderService {

    Map<String , String> addToOrder(List<BookWithNum> books, int userId) throws SchedulerException;

    int deleteOrder(String orderNo);

    int updatePayStatus(String orderNo , int payStatus);

    BookList getOrderList(int OrderId , int pageNum , int pageSize);

    Order getOrderInfo(int orderId);

    List<Order> searchByStatus(int payStatus , int userId);

    OrderList getAllOrder(int userId , int pageNum , int pageSize);

}
